import { Tag } from "antd";

interface Props {
  tagList: string[];
}
/**
 * 标签列表组件
 * @param  标签列表
 */
const TagList: React.FC<Props> = (props) => {
  const { tagList } = props;
  return tagList.map((tag) => {
    return (
      <Tag color="blue" key={tag}>
        {tag}
      </Tag>
    );
  });
};
export default TagList;
